#ifndef __MPU6050_H
#define __MPU6050_H
#include "stm32f10x.h"
typedef struct {
	float accel_x;
	float accel_y;
	float accel_z;
	float gyro_x;
	float gyro_y;
	float gyro_z;
	float temp;
} MPU6050_Data;
void MPU6050_WriteReg(uint8_t RegAddress, uint8_t Data);
uint8_t MPU6050_ReadReg(uint8_t RegAddress);

void MPU6050_Init(void);
uint8_t MPU6050_GetID(void);
void mpu6050_get_data(MPU6050_Data* data);

#endif
